﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using ICSharpCode.AvalonEdit.Document;

namespace SQLBuilderWPF
{
    class updateControlsToTextDocumentConvert : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var temp = (UpdateControls.XAML.Wrapper.ObjectInstance<TextDocument>)value;
            return (TextDocument)temp.WrappedObject;
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
